<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>看看下班没</title>
    <style>
        body {
            width: 320px;
            padding: 8px;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        .container {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .time-section {
            text-align: center;
            font-size: 18px;
            margin-bottom: 4px;
        }
        .weekend-countdown {
            background-color: #f0f0f0;
            padding: 6px;
            border-radius: 4px;
            text-align: center;
            font-size: 14px;
        }
        .progress-section {
            margin: 8px 0;
        }
        .progress-bar {
            width: 100%;
            height: 14px;
            background-color: #e0e0e0;
            border-radius: 7px;
            overflow: hidden;
        }
        .progress {
            height: 100%;
            background-color: #4CAF50;
            transition: width 0.3s ease;
        }
        .settings-section {
            border: 1px solid #ddd;
            padding: 8px;
            border-radius: 4px;
        }
        .form-group {
            margin-bottom: 6px;
        }
        label {
            display: block;
            margin-bottom: 2px;
            font-size: 13px;
        }
        input {
            width: 100%;
            padding: 3px 5px;
            margin-bottom: 4px;
            font-size: 13px;
        }
        button {
            background-color: #4CAF50;
            color: white;
            padding: 6px 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        button:hover {
            background-color: #45a049;
        }
        .earnings {
            font-size: 15px;
            text-align: center;
            margin: 6px 0;
            color: #4CAF50;
        }
    </style>
</head>
<body>
    <div class="container">
        <div style="text-align:center;font-size:20px;font-weight:bold;margin-bottom:4px;letter-spacing:2px;color:#4CAF50;">看看下班没</div>
        <div class="time-section">
            <div id="current-time"></div>
            <div id="current-date"></div>
        </div>
        
        <div class="weekend-countdown">
            <div>距离周末还有：</div>
            <div id="weekend-countdown"></div>
        </div>

        <div class="progress-section">
            <div style="font-size:13px;">今日工作进度</div>
            <div class="progress-bar">
                <div class="progress" id="work-progress"></div>
            </div>
            <div id="progress-text" style="font-size:13px;"></div>
        </div>

        <div class="earnings">
            <div>今日已赚：<span id="today-earnings">¥0.00</span></div>
            <div>时薪：<span id="hourly-rate">¥0.00</span></div>
        </div>

        <div class="settings-section">
            <h3 style="font-size:15px;margin:0 0 6px 0;">设置</h3>
            <div class="form-group">
                <label>月薪（元）：</label>
                <input type="number" id="monthly-salary" placeholder="请输入月薪">
            </div>
            <div class="form-group">
                <label>每月工作天数：</label>
                <input type="number" id="work-days" placeholder="请输入工作天数">
            </div>
            <div class="form-group">
                <label>上班时间：</label>
                <input type="time" id="work-start">
            </div>
            <div class="form-group">
                <label>下班时间：</label>
                <input type="time" id="work-end">
            </div>
            <div class="form-group">
                <label>
                    <input type="checkbox" id="has-lunch-break">
                    有午休时间
                </label>
            </div>
            <div class="form-group" id="lunch-time-group" style="display: none;">
                <label>午休开始时间：</label>
                <input type="time" id="lunch-start">
                <label>午休结束时间：</label>
                <input type="time" id="lunch-end">
            </div>
            <button id="save-settings">保存设置</button>
        </div>
    </div>
    <script src="popup.js"></script>
</body>
</html> 